package com.example.hello.client.CellTable;

import com.vaadin.shared.AbstractComponentState;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;

public class BootstrapCellTableState extends AbstractComponentState {
    private List<String> columnPropertyNames = new LinkedList<String>();
    private List<HashMap<String, String>> rows = new LinkedList<HashMap<String, String>>();

    public int columnCount;
    private boolean bordered;
    private boolean condensed;
    private boolean striped;
    private boolean hovered;

    public void setColumnPropertyNames(List<String> columnPropertyNames) {
        this.columnPropertyNames = columnPropertyNames;
    }

    public List<String> getColumnPropertyNames() {
        return columnPropertyNames;
    }

    public void addRow(HashMap<String, String> row) {
        rows.add(row);
    }

    public void setRows(List<HashMap<String, String>> rows) {
        this.rows = rows;
    }

    public List<HashMap<String, String>> getRows() {
        return rows;
    }

    public boolean isBordered() {
        return bordered;
    }

    public void setBordered(boolean bordered) {
        this.bordered = bordered;
    }

    public boolean isCondensed() {
        return condensed;
    }

    public void setCondensed(boolean condensed) {
        this.condensed = condensed;
    }

    public boolean isStriped() {
        return striped;
    }

    public void setStriped(boolean striped) {
        this.striped = striped;
    }

    public boolean isHovered() {
        return hovered;
    }

    public void setHovered(boolean hovered) {
        this.hovered = hovered;
    }

}
